package com.bird.business.dao;

import com.bird.business.domain.TbUser;
import com.bird.business.domain.TbUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TbUserMapper {
    long countByExample(TbUserExample example);

    int deleteByExample(TbUserExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbUser record);

    int insertSelective(TbUser record);

    List<TbUser> selectByExample(TbUserExample example);

    TbUser selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbUser record, @Param("example") TbUserExample example);

    int updateByExample(@Param("record") TbUser record, @Param("example") TbUserExample example);

    int updateByPrimaryKeySelective(TbUser record);

    int updateByPrimaryKey(TbUser record);

    List<Map> getWorkList(@Param(value = "userId") Long userId);

    List<Map> getEducationList(@Param(value = "userId") Long userId);

    List<Map> getSalaryList(@Param(value = "userId") Long userId);

    List<Map> getAddressList(@Param(value = "userId") Long userId);

    List<Map> getWorklifeList(@Param(value = "userId") Long userId);

    List<Map> getSexList(@Param(value = "userId") Long userId);
}
